{extend name="../../admin/view/main"}

{block name="content"}
<style>
    .layui-form-label{
        padding:0px!important;
        line-height: 38px;
        width: 100px;
        text-align: center;
    }
    .w10{width:10%}
    .w20{width:20%}
    .w25{width:25%}
    .w30{width:30%}
    .w33{width:33.33%}
    .w40{width:40%}
    .w45{width:45%}
    .w50{width:50%}
    .w60{width:60%}
    .w70{width:70%}
    .w80{width:80%}
    .w100{width:100%}
</style>
<form action="{:sysuri()}" class="layui-card layui-form" data-auto="true" method="post">
    <div class="layui-card-body">
        
        <div class="layui-form-item">
            <div class="layui-inline w100"> 
            <label class="layui-form-label">所属分类</label>
            <div class="layui-input-block">
            <select class="layui-select" lay-search name="cat">
                
                {foreach $cates as $cate}
                
                <?php if(isset($vo['cat']) && (implode(",",$cate['ids']) == $vo['cat'])){?>
                
                <option selected value="{:join(',', $cate.ids)}">{:join(' ＞ ', $cate.names)}</option>
                
                <?php }else{ ?>
                
                <option value="{:join(',', $cate.ids)}">{:join(' ＞ ', $cate.names)}</option>
                
                <?php }?>
                
                {/foreach}
                
            </select>
            </div>
            </div>
        </div>
        
        <div class="layui-form-item">
            <div class="layui-inline w50"> 
            <label class="layui-form-label">商品中文名称</label>
            <div class="layui-input-block">
            <input class="layui-input" name="name" placeholder="请输入商品名称" value="{$vo.name|default=''}">
            </div>
            </div>
            <div class="layui-inline w50"> 
            <label class="layui-form-label">商品英文名称</label>
            <div class="layui-input-block">
            <input class="layui-input" name="ename" placeholder="" value="{$vo.ename|default=''}">
            </div>
            </div>
        </div>
        
        <div class="layui-form-item">
            <div class="layui-inline w50">
                <label class="layui-form-label">商品中文规格</label>
                <div class="layui-input-block">
                <input class="layui-input" name="guige" placeholder="" value="{$vo.guige|default=''}">
                </div>
            </div> 
            <div class="layui-inline w50">   
                <label class="layui-form-label">商品英文规格</label>
                <div class="layui-input-block">
                <input class="layui-input" name="eguige" placeholder="" value="{$vo.eguige|default=''}">
                </div>
            </div>
        </div>
          
        <div class="layui-form-item">   
            <div class="layui-inline">   
                <label class="layui-form-label">计量单位组</label>
                <div class="layui-input-block">
                <input class="layui-input" name="int" placeholder="" value="{$vo.int|default=''}">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">主计量单位</label>
                <div class="layui-input-block">
                <input class="layui-input" name="mint" placeholder="" value="{$vo.mint|default=''}">
                </div>
            </div> 
            <div class="layui-inline">   
                <label class="layui-form-label">采购计量单位</label>
                <div class="layui-input-block">
                <input class="layui-input" name="bint" placeholder="" value="{$vo.bint|default=''}">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">销售计量单位</label>
                <div class="layui-input-block">
                <input class="layui-input" name="sint" placeholder="" value="{$vo.sint|default=''}">
                </div>
            </div> 
            <div class="layui-inline">   
                <label class="layui-form-label">库存计量单位</label>
                <div class="layui-input-block">
                <input class="layui-input" name="tint" placeholder="" value="{$vo.tint|default=''}">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">报关计量单位</label>
                <div class="layui-input-block">
                <input class="layui-input" name="bgint" placeholder="" value="{$vo.bgint|default=''}">
                </div>
            </div>  
        </div>  
        <div class="layui-form-item flex">   
            <div class="layui-inline w50">   
                <label class="layui-form-label">报关助记符</label>
                <div class="layui-input-block">
                <input class="layui-input" name="bgicon" placeholder="" value="{$vo.bgicon|default=''}">
                </div>
            </div>
            <div class="layui-inline w50">
                <label class="layui-form-label">报关商品编码</label>
                <div class="layui-input-block">
                <input class="layui-input" name="bgcode" placeholder="" value="{$vo.bgcode|default=''}">
                </div>
            </div> 
        </div>  
        <div class="layui-form-item flex"> 
            <div class="layui-inline w50">   
                <label class="layui-form-label">报关商品中文名</label>
                <div class="layui-input-block">
                <input class="layui-input" name="bgname" placeholder="" value="{$vo.bgname|default=''}">
                </div>
            </div>
            <div class="layui-inline w50">   
                <label class="layui-form-label">报关商品英文名</label>
                <div class="layui-input-block">
                <input class="layui-input" name="bgename" placeholder="" value="{$vo.bgename|default=''}">
                </div>
            </div>
        </div>
        <div class="layui-form-item flex"> 
            <div class="layui-inline w25">   
                <label class="layui-form-label">单箱净重</label>
                <div class="layui-input-block">
                <input class="layui-input" name="pweight" placeholder="" value="{$vo.pweight|default=''}">
                </div>
            </div>
            <div class="layui-inline w25">   
                <label class="layui-form-label">单箱毛重</label>
                <div class="layui-input-block">
                <input class="layui-input" name="pmweight" placeholder="" value="{$vo.pmweight|default=''}">
                </div>
            </div>
            <div class="layui-inline w25">   
                <label class="layui-form-label">单箱体积</label>
                <div class="layui-input-block">
                <input class="layui-input" name="ptj" placeholder="" value="{$vo.ptj|default=''}">
                </div>
            </div>
            <div class="layui-inline w25">   
                <label class="layui-form-label">单箱数量</label>
                <div class="layui-input-block">
                <input class="layui-input" name="pnum" placeholder="" value="{$vo.pnum|default=''}">
                </div>
            </div>
        </div>
        
        
        <div class="layui-form-item flex"> 
            <div class="layui-inline w33">   
                <label class="layui-form-label">箱子长</label>
                <div class="layui-input-block">
                <input class="layui-input" name="plong" placeholder="" value="{$vo.plong|default=''}">
                </div>
            </div>
            <div class="layui-inline w33">   
                <label class="layui-form-label">箱子宽</label>
                <div class="layui-input-block">
                <input class="layui-input" name="pkuan" placeholder="" value="{$vo.pkuan|default=''}">
                </div>
            </div>
            <div class="layui-inline w33">   
                <label class="layui-form-label">箱子高</label>
                <div class="layui-input-block">
                <input class="layui-input" name="pheight" placeholder="" value="{$vo.pheight|default=''}">
                </div>
            </div>
        </div>
        
        <div class="layui-form-item flex"> 
            <div class="layui-inline w33">   
                <label class="layui-form-label">出口属性</label>
                <div class="layui-input-block">
                <input class="layui-input" name="cktype" placeholder="" value="{$vo.cktype|default=''}">
                </div>
            </div>
            <div class="layui-inline w33">   
                <label class="layui-form-label">进口属性</label>
                <div class="layui-input-block">
                <input class="layui-input" name="jktype" placeholder="" value="{$vo.jktype|default=''}">
                </div>
            </div>
            <div class="layui-inline w33">   
                <label class="layui-form-label">配件属性</label>
                <div class="layui-input-block">
                <input class="layui-input" name="pjtype" placeholder="" value="{$vo.pjtype|default=''}">
                </div>
            </div>
        </div>
        
        <div class="layui-form-item flex"> 
            <div class="layui-inline w33">   
                <label class="layui-form-label">内销属性</label>
                <div class="layui-input-block">
                <input class="layui-input" name="nxtype" placeholder="" value="{$vo.nxtype|default=''}">
                </div>
            </div>
            <div class="layui-inline w33">   
                <label class="layui-form-label">包材属性</label>
                <div class="layui-input-block">
                <input class="layui-input" name="mtype" placeholder="" value="{$vo.mtype|default=''}">
                </div>
            </div>
            <div class="layui-inline w33">   
                <label class="layui-form-label">内购属性</label>
                <div class="layui-input-block">
                <input class="layui-input" name="ngtype" placeholder="" value="{$vo.ngtype|default=''}">
                </div>
            </div>
        </div>
        
        <div class="layui-form-item flex"> 
            <div class="layui-inline w33">   
                <label class="layui-form-label">自制属性</label>
                <div class="layui-input-block">
                <input class="layui-input" name="zztype" placeholder="" value="{$vo.zztype|default=''}">
                </div>
            </div>
            <div class="layui-inline w33">   
                <label class="layui-form-label">委外属性</label>
                <div class="layui-input-block">
                <input class="layui-input" name="wwtype" placeholder="" value="{$vo.wwtype|default=''}">
                </div>
            </div>
            <div class="layui-inline w33">   
                <label class="layui-form-label">保税属性</label>
                <div class="layui-input-block">
                <input class="layui-input" name="bstype" placeholder="" value="{$vo.bstype|default=''}">
                </div>
            </div>
        </div>
        
        <div class="layui-form-item flex"> 
            <div class="layui-inline w33">   
                <label class="layui-form-label">OEM号</label>
                <div class="layui-input-block">
                <input class="layui-input" name="oem" placeholder="" value="{$vo.oem|default=''}">
                </div>
            </div>
            <div class="layui-inline w33">   
                <label class="layui-form-label">颜色</label>
                <div class="layui-input-block">
                <input class="layui-input" name="color" placeholder="" value="{$vo.color|default=''}">
                </div>
            </div>
            <div class="layui-inline w33">   
                <label class="layui-form-label">商标</label>
                <div class="layui-input-block">
                <input class="layui-input" name="sb" placeholder="" value="{$vo.sb|default=''}">
                </div>
            </div>
        </div>
        
        
        <div class="layui-form-item flex"> 
            <div class="layui-inline w20">   
                <label class="layui-form-label">销售单价</label>
                <div class="layui-input-block">
                <input class="layui-input" name="price" placeholder="" value="{$vo.price|default=''}">
                </div>
            </div>
            <div class="layui-inline w80">   
                <label class="layui-form-label">备注</label>
                <div class="layui-input-block">
                <input class="layui-input" name="beizhu" placeholder="" value="{$vo.beizhu|default=''}">
                </div>
            </div>
        </div>
        
        <div class="layui-form-item flex"> 
            <div class="layui-inline w60">   
                <label class="layui-form-label">首选供应商</label>
                <div class="layui-input-block">
                <input class="layui-input" name="fgys" placeholder="" value="{$vo.fgys|default=''}">
                </div>
            </div>
            <div class="layui-inline w20">   
                <label class="layui-form-label">默认采购币种</label>
                <div class="layui-input-block">
                <input class="layui-input" name="mbz" placeholder="" value="{$vo.mbz|default=''}">
                </div>
            </div>
            <div class="layui-inline w20">   
                <label class="layui-form-label">默认采购单价</label>
                <div class="layui-input-block">
                <input class="layui-input" name="mprice" placeholder="" value="{$vo.mprice|default=''}">
                </div>
            </div>
        </div>
        
        <div class="layui-form-item flex"> 
            <div class="layui-inline w40">   
                <label class="layui-form-label">拥有人</label>
                <div class="layui-input-block">
                <input class="layui-input" name="owner" placeholder="" value="{$vo.owner|default=''}">
                </div>
            </div>
            <div class="layui-inline w40">   
                <label class="layui-form-label">生产说明</label>
                <div class="layui-input-block">
                <input class="layui-input" name="des" placeholder="" value="{$vo.des|default=''}">
                </div>
            </div>
            <div class="layui-inline w20 flex">   
                <label class="layui-form-label">增值税率%</label>
                <div class="layui-input-inline layui-input-wrap">
                <input class="layui-input" name="ratio" placeholder="" value="{$vo.ratio|default=''}">
                </div>
                <div class="layui-form-mid layui-text-em">%</div>
            </div>
        </div>




        <div class="layui-form-item">
            <table class="layui-table">
                <thead>
                <tr>
                    <th class="text-left">封面(347px*347px)</th>
                    <th class="text-left" style="width:100%">轮播图片(451px*451px)</th>
                </tr>
                <tr>
                    <td class="text-center text-top padding-0">
                        <div class="help-images">
                            <input name="cover" data-max-width="347" data-max-height="347" type="hidden" value="{$vo.cover|default=''}">
                            <script>$('[name="cover"]').uploadOneImage();</script>
                        </div>
                    </td>
                    <td class="text-left padding-0">
                        <div class="help-images">
                            <input name="slider" data-max-width="451" data-max-height="451" type="hidden" value="{$vo.slider|default=''}">
                            <script>$('[name="slider"]').uploadMultipleImage();</script>
                        </div>
                    </td>
                </tr>
                </thead>
            </table>
        </div>

        


        <div class="hr-line-dashed margin-top-40"></div>
        {notempty name='vo.id'}<input name="id" type="hidden" value="{$vo.id}">{/notempty}

        <div class="layui-form-item text-center">
            <button class="layui-btn" type="submit">保存数据</button>
            <button class="layui-btn layui-btn-danger" data-history-back data-confirm="确定要取消编辑吗？" type='button'>取消编辑</button>
        </div>
    </div>
</form>
{/block}

{block name='script'}

{/block}